package com.songlanyun.modules.usergains.model;

import com.songlanyun.common.drive.ValueObject;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class UpdateCommissionDTO implements ValueObject {

    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空")
    private Long   userId;


    /**
     * 是否是增加否则是减少
     */
    private  Boolean add;


    /**
     * 操作的金额
     */
    @DecimalMin(value = "0.01",message = "操作的最小金额是0.01")
    @DecimalMax(value = "99999999.00",message = "操作的最小金额是99999999.00")
    private BigDecimal value;




}
